package com.ruoyi.loan.utils;

import com.ruoyi.common.utils.StringUtils;

/**
 * @author coderFu
 * @create 2022/4/5
 */
public class CheckIdentityCard {

    private static final int IDENTITY_CARD_LENGTH = 18;

    public static boolean checkIdentityCard(String idCard){
        if (StringUtils.isEmpty(idCard)){
            return false;
        }
        return idCard.length() == IDENTITY_CARD_LENGTH;
    }
}
